package com.boatAnchorAssistant.pojo.entity;

import com.boatAnchorAssistant.pojo.check.Check;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

import javax.persistence.Table;

/**
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2024/11/11 11:44
 * 事件分组
 */
@Data
@Table
@AccEntity(value = "事件分组",type = EntityType.SERVICE_ENTITY)
@TableComment("事件分组")
public class EventGroup extends DomainBaseEntity<EventGroup> {
    /**
     * 编号
     */
    @Column(type = MySqlTypeConstant.VARCHAR,
            comment = "编号")
    @Check
    private String code;

    /**
     * 名称
     */
    @Column(type = MySqlTypeConstant.VARCHAR,
            comment = "名称")
    private String name;
}
